import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import './assets/main.css'
import hljs from 'highlight.js';
import 'highlight.js/styles/atom-one-dark.css' //样式
import 'ant-design-vue/dist/antd.css';

const app = createApp(App)
app.use(router)

app.directive('highlight', function (el) {
    let blocks = el.querySelectorAll('pre code');
    blocks.forEach((block: any) => {
        hljs.highlightBlock(block)
    })
})


app.mount('#app')
